package abstracts;

/**
 * All rights Reserved, Designed By www.tusdao.com
 *
 * @version V1.0
 * @Title: Student
 * @Package myTest
 * @Description: TODO(一句话描述类是干嘛的)
 * @author: tusxxw
 * @date: 2021/1/5
 * @Copyright: 2020 www.tbs.com Inc. All rights reserved.
 * <p>
 * 注意：本内容仅限于TBS项目组内部传阅，禁止外泄以及用于其他的商业目的
 */
public abstract class Student {

    public String id;

    public String name;

    public String major;

    public String place;

    public Double money;

    //这个是构造方法
    public Student(String id, String name, String major) {
        this.id = id;
        this.name = name;
        this.major = major;
        //显示相关信息
        System.out.println("学号为：" + id + "姓名为：" + name + "专业为" + major);
    }

    //抽象方法
    public abstract void setPlace(String place);

    //抽象方法
    public abstract void setMoney(Double money);
}
